#pragma once
#include "FreeRTOS.h"
#include "task.h"
#include "at32f413.h"

class Led
{
public:
    Led(gpio_type* _gpiox, uint32_t _pins);
    void gpio_config(void);
    void toggle();
    void on();
    void off();

private:
    uint32_t m_pins;
    gpio_pull_type m_pull;
    crm_periph_clock_type m_crm_periph_clock;
    gpio_type* m_gpiox;
};
